#  This material contains proprietary software of Entropic Speech, Inc.   
#  Any reproduction, distribution, or publication without the the prior	   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice			
# 								
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
# 				
#
# makefile for psps @(#)makefile	1.6 6/10/87 ESI
 	
SPSDIR = /u/parker/espsC
SPSLIB = $(SPSDIR)/lib/libespsg.a
MANDIR = $(SPSDIR)/man
SINC   = $(SPSDIR)/include/esps
SINCL   = $(SPSDIR)/include.local/esps
BINDIR = $(SPSDIR)/bin
OLDBIN = $(BINDIR)/old
LINT = att lint
PROGMOD = 0750
MANMOD = 0640
CFLAGS = -DSCCS -O -I$(SINC)/..


psps:	psps.o prnt_hdr.o $(SPSLIB)
	cc -g psps.o prnt_hdr.o $(SPSLIB) -o psps


psps.o: $(SINC)/header.h $(SINC)/esps.h 
prnt_hdr.o: $(SINC)/header.h $(SINC)/esps.h 

clean:
	rm -f *.o psps

install:	$(BINDIR)/psps $(MANDIR)/man1/psps.1

lint:   psps.c prnt_hdr.c 
	$(LINT) $(LINTFLAGS) psps.c prnt_hdr.c $(LINTLIB) > lint

$(BINDIR)/psps: psps
	-mv -f $(BINDIR)/psps $(OLDBIN)/psps
	-chmod $(PROGMOD) $(OLDBIN)/psps
	-rm -f $(BINDIR)/psps
	mv psps $(BINDIR)/psps
	-strip $(BINDIR)/psps
	chmod $(PROGMOD) $(BINDIR)/psps

$(MANDIR)/man1/psps.1: psps.1
	-diffmk  $(MANDIR)/man1/psps.1 psps.1 man.diff
	@echo diffmked man in man.diff
	-rm -f $(MANDIR)/man1/psps.1
	cp psps.1 $(MANDIR)/man1/psps.1
	chmod $(MANMOD) $(MANDIR)/man1/psps.1
